﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;

namespace Alex2
{
    public class NodeData
    {
        private int gdata;
        private int hdata;
        private int fdata;
        private Point pare;
        private Point moi;
       
        public NodeData(int g, int h, int f, Point parent, Point me)
        {
            gdata = g;
            hdata = h;
            fdata = f;
            pare = parent;
            moi = me;
        }

        public void setG(int num)
        {
            gdata = num;
        }

        public void setH(int num)
        {
            hdata = num;
        }

        public void setF()
        {
            fdata = hdata + gdata;
        }

        public void setParent(Point num)
        {
            pare = num;
        }

        public void setMoi(Point num)
        {
            moi = num;
        }

        public int getG()
        {
            return gdata;
        }

        public int getH()
        {
            return hdata;
        }

        public int getF()
        {
            return fdata;
        }

        public Point getParent()
        {
            return pare;
        }

        public Point getMoi()
        {
            return moi;
        }
    }
}
